<!-- Info boxes -->
<link rel="stylesheet" type="text/css" href="/public/front/message/css/normalize.css" />
<link rel="stylesheet" href="/public/front/message/css/notiflix-1.3.0.min.css">
<script src="/public/front/message/js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="/public/front/message/js/notiflix-1.3.0.min.js" type="text/javascript"></script>
<div class="row">
    <div class="col-md-3 col-sm-6 col-xs-12">
        <div class="info-box">
            <span class="info-box-icon bg-aqua"><i class="ion ion-ios-gear-outline"></i></span>

            <div class="info-box-content">
                <span class="info-box-text">CPU 核数</span>
                <span class="info-box-number">{{.CpuNum}}<small>个</small></span>
            </div>
            <!-- /.info-box-content -->
        </div>
        <!-- /.info-box -->
    </div>
    <!-- /.col -->
    <div class="col-md-3 col-sm-6 col-xs-12">
        <div class="info-box">
            <span class="info-box-icon bg-red"><i class="fa fa-google-plus"></i></span>

            <div class="info-box-content">
                <span class="info-box-text">Golang版本</span>
                <span class="info-box-number">{{.GoVersion}}</span>
            </div>
            <!-- /.info-box-content -->
        </div>
        <!-- /.info-box -->
    </div>
    <!-- /.col -->

    <!-- fix for small devices only -->
    <div class="clearfix visible-sm-block"></div>

    <div class="col-md-3 col-sm-6 col-xs-12">
        <div class="info-box">
            <span class="info-box-icon bg-green"><i class="fa fa-keyboard-o"></i></span>

            <div class="info-box-content">
                <span class="info-box-text">操作系统</span>
                <span class="info-box-number">{{.Goos}}</span>
            </div>
            <!-- /.info-box-content -->
        </div>
        <!-- /.info-box -->
    </div>
    <!-- /.col -->
    <div class="col-md-3 col-sm-6 col-xs-12">
        <div class="info-box">
            <span class="info-box-icon bg-yellow"><i class="fa fa-list-ul"></i></span>

            <div class="info-box-content">
                <span class="info-box-text">GOROOT</span>
                <span class="info-box-number">{{.GoRoot}}</span>
            </div>
            <!-- /.info-box-content -->
        </div>
        <!-- /.info-box -->
    </div>
    <!-- /.col -->
    <script>
        $(function () {
            Notiflix.Notify.Init();
            var LastId = {{.navLast.ID}}
            var int=setInterval(function () {
                $.ajax({
                    type: "get",//方法类型
                    dataType: "json",//预期服务器返回的数据类型
                    url: "/system/last/more/"+LastId ,//url
                    success: function (result) {
                        if (result.data.length > 0) {
                            for (var i =0;i<= result.data.length-1;i++){
                                console.log(result.data[i])
                                Notiflix.Notify.Success(result.data[i].from + " : " + result.data[i].title);
                            }
                            LastId = result.data[result.data.length-1].ID
                        }
                    }
                });
            },3000);
        });
    </script>
</div>
<script src="/public/adminlit/jquery-1.10.2.min.js"></script>
